package com.group01.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 订单项表
 * @TableName es_order_item
 */
@TableName(value ="es_order_item")
@AllArgsConstructor
@NoArgsConstructor
@Data
public class OrderItem implements Serializable {
    /**
     * 订单项编号
     */
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 所属订单
     */
    private String orderId;

    /**
     * 包含商品
     */
    private Integer goodsId;

    /**
     * 选购数量
     */
    private Integer num;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}